package com.woniuxy.core.exception.movieSessionException;

public enum MovieSessionExceptionCode {

    MOVIE_INEXISTENCE(2001,"电影不存在"),
    MOVIE_NOTLISTEDYET(2002,"电影未上架"),
    SESSION_NOTINMOVIETIME(2003,"场次不在电影上映时间内"),
    SESSION_TIMENOTENOUGH(2004,"场次时间不足"),
    CINEMA_TIMECONFLICT(2005,"影厅时间冲突"),
    SESSION_NOHAVE(2006,"场次不存在");

    private Integer code;

    private String message;

    MovieSessionExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }
}
